/**
 * @Description : 获取用户信息
 * @author : August_xiao 1932794922@qq.com
 * @date : 2022-03-04 23:41
 */
import axios from '@/utils/axios'

const userApi = {
  //QQ信息
  qqInfos: '/xiang-blog/userInfo/getNameAndPhoto'
}

/**
 * 获取QQ用户信息
 * @param params qqNumber
 * @returns {AxiosPromise}
 */
const getQQInfos = (params) => {
  return axios.get(userApi.qqInfos, params)
}

/**
 * 获取座右铭
 */
const getMoto = (params) => {
  return axios.get('/apikey', params)
}

export { getQQInfos, getMoto }
